class Outer1 {
    int a1 = 12;
    static int a2 = 13;
    //静态内部类---》所有类型的成员都可以定义
    //静态内部类当中，不能访问外部类的非静态成员，因为需要通过外部类的对象的引用来访问
    static class InnerClass{
        int a1 = 10;
        private static int a3 = 3;
        private int a2 = 1;
        public void and(){
            Outer1 s = new Outer1();
            System.out.println(s.a1);
            //System.out.println(Outer1.this.a1);错误
        }

    }

}
public class Outer{
    public static void main(String[] args) {
        Outer1.InnerClass ch = new Outer1.InnerClass();
        ch.and();
    }
}